package com.by;

import com.by.course.CourseApplication;
import com.by.course.config.web.jwt.JwtService;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;

@SpringBootTest(classes = CourseApplication.class)
public class Demo {

    @Resource
    private JwtService jwtService;

    @Test
    public void testDemo() {
        String token = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOjIsIm9wZW5JZCI6Im0xODU0IiwiVVVJRCI6LTIwNTQ2NzkxNTg0OTIwNTcyNDQsImV4cCI6MTc3NTE5NTE4Miwic3ViIjoibTE4NTQiLCJpYXQiOjE3NDQwOTExODJ9.aSH2ZHZwcNFT7yl4I8tqHpwHNGicnO0Db_IbkfBLK5s";
        System.out.println("test");
        jwtService.isTokenExpired(token);
    }

}
